<import type='css' file="Css.user" />
<import type='js' file="Js.people" />
<div class="aw-container-wrap">
    <div class="container">
        <div class="row">
            <div class="aw-content-wrap clearfix">
                <div class="col-sm-12 col-md-9 aw-main-content">
                    <!-- 用户数据内容 -->
                    <div class="aw-mod aw-user-detail-box">
                        <div class="mod-head">
                            <img src="__ROOT__{$userInfo['face_url']}" alt="" style="width:100px;height:100px">
                            
                                <if condition="$exist eq 0">
                                    <span class="pull-right operate">
                                        <a href="{:U('Index/Focus/attend',array('id'=>$userInfo['id']))}" class="btn btn-mini btn-success"><span>关注</span> <em>|</em> <b>{$attend}</b></a>
                                    </span>
                                <elseif condition="$exist eq 1"/>
                                    <span class="pull-right operate">
                                        <a href="{:U('Index/Focus/attend',array('id'=>$userInfo['id']))}" class="btn btn-mini btn-success"><span>已关注</span> <em>|</em> <b>{$attend}</b></a>
                                    </span>
                                <elseif condition="$exist eq 2"/>
                                    <span class="pull-right operate">
                                        <a href="{:U('Index/Login/index')}" class="btn btn-mini btn-success"><span>关注</span> <em>|</em> <b>{$attend}</b></a>
                                    </span>
                                <else/>
                                </if>
                          
                            <h1>{$userInfo['username']}</h1>
                            <p class="text-color-999">{$userInfo['introduce']}</p>
                            <p class="aw-user-flag">
                                <span>
                                    <i class="icon icon-location"> {$userInfo['province']} {$userInfo['city']}</i>
                                </span>
                                <!--<span>-->
                                    <!--<i class="icon icon-job"> </i>-->
                                <!--</span>-->
                            </p>
                        </div>
                        <!--<div class="mod-body">-->
                            <!--<div class="meta">-->
                                <!--<span><i class="icon icon-prestige"></i> 威望 : <em class="aw-text-color-green">0</em></span>-->
                                <!--<span><i class="icon icon-score"></i> 积分 : <em class="aw-text-color-orange">50</em></span>                                <span><i class="icon icon-agree"></i> 赞同 : <em class="aw-text-color-orange">0</em></span>-->
                                <!--<span><i class="icon icon-thank"></i> 感谢 : <em class="aw-text-color-orange">0</em></span>-->
                            <!--</div>-->

                        <!--</div>-->
                        <div class="mod-footer">
                            <ul class="nav nav-tabs aw-nav-tabs ">
                                <li class="active"><a href="http://wenda.wecenter.com/#overview" id="page_overview" data-toggle="tab">概述</a></li>
                                <li class=""><a href="http://wenda.wecenter.com/#questions" id="page_questions" data-toggle="tab">发问<span class="badge">{$questionCount}</span></a></li>
                                <li class=""><a href="http://wenda.wecenter.com/#answers" id="page_answers" data-toggle="tab">回复<span class="badge">{$answerCount}</span></a></li>
                                <!--<li class=""><a href="http://wenda.wecenter.com/#articles" id="page_articles" data-toggle="tab">文章<span class="badge">0</span></a></li>-->
                                <li class=""><a href="http://wenda.wecenter.com/#focus" id="page_focus" data-toggle="tab">关注</a></li>
                                <li class=""><a href="http://wenda.wecenter.com/#actions" id="page_actions" data-toggle="tab">动态</a></li>
                                <li class=""><a href="http://wenda.wecenter.com/#detail" id="page_detail" data-toggle="tab">详细资料</a></li>
                                <!--<li class=""><a href="http://wenda.wecenter.com/#integral" id="page_integral" data-toggle="tab">我的积分</a></li>-->
                            </ul>
                        </div>
                    </div>
                    <!-- end 用户数据内容 -->

                    <div class="aw-user-center-tab">
                        <div class="tab-content">
                            <div class="tab-pane active" id="overview">
                                <!-- 回复 -->
                                <div class="aw-mod">
                                    <div class="mod-head">
                                        <h3><a class="pull-right aw-more-content" href="javascript:;" onclick="$(&#39;#page_answers&#39;).click();">更多 »</a>回复</h3>
                                    </div>
                                    <div class="mod-body">
                                        <div class="aw-profile-answer-list">
                                            <if condition="$answerCount neq 0">
                                                <foreach name="answerData" item="v">
                                                    <div class="aw-item">
                                                        <div class="mod-head">
                                                            <h4><a href="{:U('Index/Question/show',array('id'=>$v['id']))}">{$v['title']}</a></h4>
                                                        </div>
                                                        <div class="mod-body">
                                                            <!--<span class="aw-border-radius-5 count pull-left"><i class="icon icon-agree"></i>2</span>-->
                                                            <p class="aw-hide-txt">{$v['content']}</p>
                                                        </div>
                                                    </div>
                                                </foreach>
                                            <else/>
                                                <p class="padding10 text-center">没有内容</p>
                                            </if>
                                        </div>
                                    </div>
                                </div>
                                <!-- end 回复 -->

                                <!-- 发问 -->
                                <div class="aw-mod">
                                    <div class="mod-head">
                                        <h3><a class="pull-right aw-more-content" href="javascript:;" onclick="$(&#39;#page_questions&#39;).click();">更多 »</a>发问</h3>
                                    </div>
                                    <div class="mod-body">
                                        <div class="aw-profile-publish-list">
                                            <if condition="$questionCount neq 0">
                                                <foreach name="questionData" item="v">
                                                    <div class="aw-item">
                                                        <div class="mod-head">
                                                            <h4><a href="{:U('Index/Question/show',array('id'=>$v['id']))}">{$v['title']}</a></h4>
                                                        </div>
                                                        <div class="mod-body">
                                                            <!--<span class="aw-border-radius-5 count pull-left"><i class="icon icon-reply"></i>3</span>-->
                                                            <p class="aw-hide-txt">{$v['views']} 次浏览 &nbsp;• {$v['attention']} 个关注 &nbsp; • {$v['create_time']|date='Y-m-d H:i:s',###}</p>
                                                        </div>
                                                    </div>
                                                </foreach>
                                            <else/>
                                                <p class="padding10 text-center">没有内容</p>
                                            </if>
                                        </div>
                                    </div>
                                </div>
                                <!-- end 发问 -->

                                <!-- 最新动态 -->
                                <div class="aw-mod">
                                    <div class="mod-head">
                                        <h3><a class="pull-right aw-more-content" href="javascript:;" onclick="$('#page_actions').click();">更多 »</a>动态</h3>
                                    </div>
                                    <div class="mod-body">
                                        <ul>
                                            <if condition="$dynamicCount neq 0">
                                                <foreach name="dynamicData" item="v">
                                                <li>
                                                    <p>
                                                        <span class="pull-right text-color-999">{$v['create_time']|date='Y-m-d H:i:s',###}</span>
                                                        <em class="pull-left"><a href="{:U('Index/People/index',array('id'=>$v['id']))}" class="aw-user-name" data-id="10">{$v['username']}</a> 回答了问题,</em>
                                                        <a class="aw-hide-txt" href="{:U('Index/Question/show',array('id'=>$v['qid']))}">{$v['title']}</a>
                                                    </p>
                                                </li>
                                                </foreach>
                                            <else/>
                                                <p class="padding10 text-center">没有内容</p>
                                            </if>
                                        </ul>
                                    </div>
                                </div>

                            </div>
                            <div class="tab-pane" id="questions">
                                <div class="aw-mod">
                                    <div class="mod-head">
                                        <h3>发问</h3>
                                    </div>
                                    <div class="mod-body">
                                        <div class="aw-profile-publish-list">
                                            <if condition="$questionCount neq 0">
                                                <foreach name="moreQuestion" item="v">
                                                    <div class="aw-item">
                                                        <div class="mod-head">
                                                            <h4><a href="{:U('Index/Question/show',array('id'=>$v['id']))}">{$v['title']}</a></h4>
                                                        </div>
                                                        <div class="mod-body">
                                                            <!--<span class="aw-border-radius-5 count pull-left"><i class="icon icon-reply"></i>3</span>-->
                                                            <p class="aw-hide-txt">{$v['views']} 次浏览 &nbsp;• {$v['attention']} 个关注 &nbsp; • {$v['create_time']|date='Y-m-d H:i:s',###}</p>
                                                        </div>
                                                    </div>
                                                </foreach>
                                            <else/>
                                                <p class="padding10 text-center">没有内容</p>
                                            </if>
                                        </div>
                                    </div>
                                    <!--<div class="mod-body">-->
                                        <!--<div class="aw-profile-publish-list" id="contents_user_actions_questions"><p style="padding: 15px 0" align="center">没有内容</p></div>-->
                                    <!--</div>-->
                                    <div class="mod-footer">
                                        <!-- 加载更多内容 -->
                                        <a class="aw-load-more-content disabled" id="bp_user_actions_questions_more" data-page="0"><span>没有更多了</span></a>
                                        <!-- end 加载更多内容 -->
                                    </div>
                                </div>
                            </div>
                            <div class="tab-pane" id="answers">
                                <div class="aw-mod">
                                    <div class="mod-head">
                                        <h3>回复</h3>
                                    </div>
                                    <div class="mod-body">
                                        <div class="aw-profile-answer-list">
                                            <if condition="$answerCount neq 0">
                                                <foreach name="moreAnswer" item="v">
                                                    <div class="aw-item">
                                                        <div class="mod-head">
                                                            <h4><a href="{:U('Index/Question/show',array('id'=>$v['id']))}">{$v['title']}</a></h4>
                                                        </div>
                                                        <div class="mod-body">
                                                            <!--<span class="aw-border-radius-5 count pull-left"><i class="icon icon-agree"></i>0</span>-->
                                                            <p class="aw-hide-txt">{$v['content']}</p>
                                                            <p class="aw-hide-txt">{$v['create_time']|date='Y-m-d H:i:s',###}</p>
                                                        </div>
                                                    </div>
                                                </foreach>
                                            <else/>
                                                <p class="padding10 text-center">没有内容</p>
                                            </if>
                                        </div>
                                    </div>
                                    <!--<div class="mod-body">-->
                                        <!--<div class="aw-profile-answer-list" id="contents_user_actions_answers"><p style="padding: 15px 0" align="center">没有内容</p></div>-->
                                    <!--</div>-->
                                    <div class="mod-footer">
                                        <!-- 加载更多内容 -->
                                        <a class="aw-load-more-content disabled" id="bp_user_actions_answers_more" data-page="0">
                                            <span>没有更多了</span>
                                        </a>
                                        <!-- end 加载更多内容 -->
                                    </div>

                                </div>
                            </div>
                            <div class="tab-pane" id="articles">
                                <div class="aw-mod">
                                    <div class="mod-head">
                                        <h3>文章</h3>
                                    </div>
                                    <div class="mod-body">
                                        <div class="aw-profile-publish-list" id="contents_user_actions_articles"><p style="padding: 15px 0" align="center">没有内容</p></div>
                                    </div>
                                    <div class="mod-footer">
                                        <!-- 加载更多内容 -->
                                        <a class="aw-load-more-content disabled" id="bp_user_actions_articles_more" data-page="0">
                                            <span>没有更多了</span>
                                        </a>
                                        <!-- end 加载更多内容 -->
                                    </div>
                                </div>
                            </div>
                            <div class="tab-pane" id="focus">
                                <!-- 自定义切换 -->
                                <div class="aw-mod">
                                    <div class="aw-tabs text-center">
                                        <ul>
                                            <li class="active"><a>关注的人</a></li>
                                            <li><a>关注者</a></li>
                                            <li><a>关注的话题</a></li>
                                        </ul>
                                    </div>
                                    <div class="mod-body">
                                        <div class="aw-tab-content">
                                            <div class="aw-mod aw-user-center-follow-mod">
                                                <div class="mod-body">
                                                    <ul id="contents_user_follows" class="clearfix">
                                                        <if condition="$attendCount neq 0">
                                                        <foreach name="attendTotal" item="v">
                                                            <li>
                                                                <div class="mod-head">
                                                                    <a class="aw-user-img pull-left aw-border-radius-5" data-id="2" href="{:U('Index/People/index',array('id'=>$v['aid']))}">
                                                                        <img src="__ROOT__{$v['face_url']}" alt="" style="width:50px;height: 50px ;">
                                                                    </a>
                                                                    <p><a href="{:U('Index/People/index',array('id'=>$v['aid']))}">{$v['username']}</a></p>
                                                                </div>
                                                                <div class="mod-body">
                                                                    <p class="text-color-999 aw-hide-txt">{$v['introduce']}</p>
                                                                </div>
                                                                <!--<div class="mod-footer meta">-->
                                                                    <!--<span><i class="icon icon-prestige"></i>威望 <em class="aw-text-color-green">2299</em></span>-->
                                                                    <!--<span><i class="icon icon-agree"></i>赞同 <em class="aw-text-color-orange">3444</em></span>-->
                                                                     <!--<span><i class="icon icon-thank"></i>感谢 <em class="aw-text-color-orange">1426</em></span> -->
                                                                <!--</div>-->
                                                            </li>
                                                        </foreach>
                                                        <else/>
                                                            <p style="padding: 15px 0" align="center">哎，都不知道怎么说他好了，都不关心别人的</p>
                                                        </if>
                                                    </ul>
                                                </div>
                                                <div class="mod-footer">
                                                    <!-- 加载更多内容 -->
                                                    <!--<a class="aw-load-more-content" id="bp_user_follows_more" data-page="1">-->
                                                        <!--<span>更多</span>-->
                                                    <!--</a>-->
                                                    <a class="aw-load-more-content" id="bp_user_follows_more">
                                                        <span>更多</span>
                                                    </a>
                                                    <!-- end 加载更多内容 -->
                                                </div>
                                            </div>
                                            <div class="aw-mod aw-user-center-follow-mod collapse">
                                                <div class="mod-body">
                                                    <ul class="clearfix" id="contents_user_fans">
                                                        <if condition="$beAttendedCount neq 0">
                                                        <foreach name="beAttendedTotal" item="v">
                                                            <li>
                                                                <div class="mod-head">
                                                                    <a class="aw-user-img pull-left aw-border-radius-5" data-id="2" href="{:U('Index/People/index',array('id'=>$v['uid']))}">
                                                                        <img src="__ROOT__{$v['face_url']}" alt="" style="width:50px;height: 50px ;">
                                                                    </a>
                                                                    <p><a href="{:U('Index/People/index',array('id'=>$v['uid']))}">{$v['username']}</a></p>
                                                                </div>
                                                                <div class="mod-body">
                                                                    <p class="text-color-999 aw-hide-txt">{$v['introduce']}</p>
                                                                </div>
                                                                <!--<div class="mod-footer meta">-->
                                                                    <!--<span><i class="icon icon-prestige"></i>威望 <em class="aw-text-color-green">2299</em></span>-->
                                                                    <!--<span><i class="icon icon-agree"></i>赞同 <em class="aw-text-color-orange">3444</em></span>-->
                                                                    <!-- <span><i class="icon icon-thank"></i>感谢 <em class="aw-text-color-orange">1426</em></span> -->
                                                                <!--</div>-->
                                                            </li>
                                                        </foreach>
                                                        <else/>
                                                            <p style="padding: 15px 0" align="center">哎，魅力太差了，一个粉丝都木有</p>
                                                        </if>

                                                    </ul>
                                                </div>
                                                <div class="mod-footer">
                                                    <!-- 加载更多内容 -->
                                                    <!--<a class="aw-load-more-content disabled" id="bp_user_fans_more" data-page="0">-->
                                                        <!--<span>没有更多了</span>-->
                                                    <!--</a>-->
                                                    <a class="aw-load-more-content" id="bp_user_fans_more">
                                                        <span>更多</span>
                                                    </a>
                                                    <!-- end 加载更多内容 -->
                                                </div>
                                            </div>
                                            <div class="aw-mod aw-user-center-follow-mod collapse">
                                                <div class="mod-body">
                                                    <ul id="contents_user_topics" class="clearfix">
                                                            <!--<div class="mod-body">-->
                                                                <!--<div class="aw-profile-publish-list">-->
                                                                <if condition="$questionFocusnum neq 0">
                                                                    <foreach name="questionTotal" item="v">
                                                                        <div class="aw-item">
                                                                            <div class="mod-head">
                                                                                <h4><a href="{:U('Index/Question/show',array('id'=>$v['id']))}">{$v['title']}
                                                                                </a></h4>
                                                                            </div>
                                                                            <div class="mod-body">
                                                                            <!--<span class="aw-border-radius-5 count pull-left"><i class="icon icon-reply"></i>3</span>-->
                                                                                <p class="aw-hide-txt">{$v['views']} 次浏览 &nbsp;• {$v['attention']} 个关注 &nbsp; • {$v['create_time']|date='Y-m-d H:i:s',###}</p>
                                                                            </div>
                                                                        </div>
                                                                    </foreach>
                                                                <!--</div>-->
                                                            <!--</div>-->
                                                                <else/>
                                                                    <p style="padding: 15px 0" align="center">暂未关注任何问题</p>
                                                                </if>
                                                    </ul>
                                                </div>
                                                <div class="mod-footer">
                                                    <!-- 加载更多内容 -->
                                                    <!--<a class="aw-load-more-content disabled" id="bp_user_topics_more" data-page="0">-->
                                                        <!--<span>没有更多了</span>-->
                                                    <!--</a>-->
                                                    <a class="aw-load-more-content" id="bp_user_topics_more">
                                                        <span>更多</span>
                                                    </a><!-- end 加载更多内容 -->
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!-- end 自定义切换 -->
                            </div>
                            <div class="tab-pane" id="actions">
                                <div class="aw-mod">
                                    <div class="mod-head">
                                        <h3>最新动态</h3>
                                    </div>
                                    <div class="mod-body">
                                        <div id="contents_user_actions">
                                            <ul>
                                                <if condition="$dynamicCount neq 0">
                                                    <foreach name="moreDynamic" item="v">
                                                        <li>
                                                            <p>
                                                                <span class="pull-right text-color-999">{$v['create_time']|date='Y-m-d H:i:s',###}</span>
                                                                <em class="pull-left"><a href="{:U('Index/People/index',array('id'=>$v['id']))}" class="aw-user-name" data-id="10">{$v['username']}</a> 回答了问题,</em>
                                                                <a class="aw-hide-txt" href="{:U('Index/Question/show',array('id'=>$v['qid']))}">{$v['title']}</a>
                                                            </p>
                                                        </li>
                                                    </foreach>
                                                <else/>
                                                    <p class="padding10 text-center">没有内容</p>
                                                </if>
                                            </ul>

                                        </div>
                                    </div>
                                    <div class="mod-footer">
                                        <!-- 加载更多内容 -->
                                        <a class="aw-load-more-content disabled" id="bp_user_actions_more" data-page="0">
                                            <span>没有更多了</span>
                                        </a>
                                        <!-- end 加载更多内容 -->
                                    </div>
                                </div>
                            </div>
                            <div class="tab-pane" id="detail">
                                <div class="aw-mod">
                                    <div class="mod-head">
                                        <h3>详细资料</h3>
                                    </div>
                                    <div class="mod-body aw-user-center-details">
                                        <!--<dl>-->
                                            <!--<dt><span>个人成就:</span></dt>-->
                                            <!--<dd>-->
                                                <!--<p class="meta">-->
                                                    <!--<span><i class="icon icon-prestige"></i>威望: <em class="aw-text-color-green">0</em></span>-->
                                                    <!--<span><i class="icon icon-score"></i>积分: <em class="aw-text-color-orange">50</em></span>-->
                                                    <!--<span><i class="icon icon-agree"></i>赞同: <em class="aw-text-color-orange">0</em></span>-->
                                                    <!--<span><i class="icon icon-thank"></i>感谢: <em class="aw-text-color-orange">0</em></span>-->
                                                <!--</p>-->
                                            <!--</dd>-->
                                        <!--</dl>-->
                                        <h5 style="color: #333">性别:&nbsp;{$detail['sex']}</h5>
                                        <h5 style="color: #333">注册时间:&nbsp;{$detail['register_time']|date='Y-m-d',###}</h5>
                                        <h5 style="color: #333">最后活跃:&nbsp;{$detail['logout_time']}</h5>


                                    </div>
                                </div>
                            </div>
                            <div class="tab-pane" id="integral">
                                <div class="aw-mod">
                                    <div class="mod-head">
                                        <h3><i class="icon icon-point"></i>我的积分</h3>
                                    </div>
                                    <div class="mod-body">
                                        <table class="table table-hover aw-table">
                                            <thead>
                                            <tr class="info">
                                                <th width="14%">时间</th>
                                                <th width="8%">数额</th>
                                                <th width="8%">余额</th>
                                                <th width="17%">描述</th>
                                                <th width="40%">相关信息</th>
                                            </tr>
                                            </thead>
                                            <tbody id="contents_user_integral"><tr>
                                                <td>2 天前</td>
                                                <td><span class="aw-text-color-orange">50</span></td>
                                                <td>50</td>
                                                <td>初始资本</td>
                                                <td><p> - </p></td>
                                            </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="mod-footer">
                                        <!-- 加载更多内容 -->
                                        <a class="aw-load-more-content" id="bp_user_integral" data-page="1">
                                            <span>更多</span>
                                        </a>
                                        <!-- end 加载更多内容 -->
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 侧边栏 -->
                <div class="col-sm-12 col-md-3 aw-side-bar">
                    <div class="aw-mod people-following">
                        <div class="mod-body">
                            <a onclick="$(&#39;#page_focus&#39;).click();$(&#39;#focus .aw-tabs ul li&#39;).eq(0).click();$.scrollTo($(&#39;#focus&#39;).offset()[&#39;top&#39;], 600, {queue:true})" class="pull-right font-size-12">更多 »</a>
                            <span>关注 <em class="aw-text-color-blue">{$attendCount}</em> 人</span>
                            <p>
                                <foreach name="attendData" item="v">
                                    <a class="aw-user-name" data-id="2" href="{:U('Index/People/index',array('id'=>$v['aid']))}"><img src="__ROOT__{$v['face_url']}" alt=""></a>
                                </foreach>
                            </p>
                        </div>
                    </div>
                    <div class="aw-mod people-following">
                        <div class="mod-body">
                            <a onclick="$(&#39;#page_focus&#39;).click();$(&#39;#focus .aw-tabs ul li&#39;).eq(1).click();$.scrollTo($(&#39;#focus&#39;).offset()[&#39;top&#39;], 600, {queue:true})" class="pull-right font-size-12">更多 »</a>
                            <span>被 <em class="aw-text-color-blue">{$beAttendedCount}</em> 人关注</span>
                            <p>
                                <foreach name="beAttended" item="v">
                                    <a class="aw-user-name" data-id="2" href="{:U('Index/People/index',array('id'=>$v['uid']))}"><img src="__ROOT__{$v['face_url']}" alt=""></a>
                                </foreach>
                            </p>
                        </div>

                    </div>
                    <div class="aw-mod people-following">
                            <a onclick="$(&#39;#page_focus&#39;).click();$(&#39;#focus .aw-tabs ul li&#39;).eq(2).click();$.scrollTo($(&#39;#focus&#39;).offset()[&#39;top&#39;], 600, {queue:true})" class="pull-right font-size-12">更多 »</a>
                        <div class="mod-body">关注<em class="aw-text-color-blue"> {$questionNum['num']} </em>话题</div>
                        <div class="mod-body font-size-12">
                            <ul>
                                <foreach name="questionFocus" item="v">
                                        <li><a href="{:U('Index/Question/show',array('id'=>$v['id']))}">{$v['title']}</a></li>
                                </foreach>
                            </ul>
                        </div>
                    </div>
                    <div class="aw-mod">
                        <div class="mod-body">
                            <span class="aw-text-color-666">主页访问量 : {$userInfo['views']} 次访问</span>
                        </div>
                    </div>
                </div>
                <!-- end 侧边栏 -->
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    var PEOPLE_USER_ID = '23020';

    var ACTIVITY_ACTIONS = '101,201,105,204,401,406,501,502,503';
</script>

